package com.wuchengdong.web.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@ToString
@TableName("payment")
@ApiModel("支付记录表")
public class Payment {
    @TableId
    @ApiModelProperty("主键")
    private Integer id;

    @ApiModelProperty("订单ID")
    private Integer orderId;

    @ApiModelProperty("支付渠道:alipay wechat other")
    private String paymentMethod;

    @ApiModelProperty("支付数额")
    private BigDecimal amount;

    @ApiModelProperty("交易ID")
    private String transactionId;

    @ApiModelProperty("支付状态：pending success failed")
    private String status;

    @ApiModelProperty("创建时间")
    private LocalDateTime createdAt;
}
